﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="DeltaView" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <link href="Styles/Delta.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.3.2.js" type="text/javascript"></script>
    <script src="Scripts/delta-1.0.0.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div class="UserOperations">
        <asp:Label ID="Map1Label" runat="server" Text="Select File for Map1 Stream:" /><asp:FileUpload ID="Map1File" runat="server" /><br />
        <asp:Label ID="Map2Label" runat="server" Text="Select File for Map2 Stream:" /><asp:FileUpload ID="Map2File" runat="server" /><br />
        <asp:Button ID="StartDeltaButton" runat="server" Text="Start Delta" 
            onclick="StartDeltaButton_Click" /><br />
        <asp:Label ID="GoToLabel" runat="server" Text="Go To Line : " /><asp:TextBox ID="GoToTextBox"
            runat="server" /><input id="GoToLineButton" type="button" value="Go" />
    </div>
    <h2>Map</h2>
    <div class="divDeltaMap">
        <asp:GridView ID="DeltaMapGridView" runat="server"  AutoGenerateColumns ="false" CellPadding="2" 
            Width="100%">
            <HeaderStyle CssClass="tblHeader" />
            <Columns>
                <asp:TemplateField HeaderText="Map1IDX">
                    <ItemTemplate>
                        <%# Eval("Map1IDX") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Map2IDX">
                    <ItemTemplate>
                        <%# Eval("Map2IDX") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Status">
                    <ItemTemplate>
                        <%# Eval("Status") %>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <h2>Details</h2>
    <div class="fullDeltaDIV">
        <div id="divData" class="divData">
            <asp:GridView ID="DeltaGridView" runat="server" AutoGenerateColumns="false" CellPadding="2"
                Width="100%">
                <HeaderStyle CssClass="tblHeader" />
                <Columns>
                    <asp:TemplateField HeaderText="Line">
                        <ItemTemplate>
                            <%# ((System.Data.DataRow)Container.DataItem)[0] %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Map1">
                        <ItemTemplate>
                            <%# ((System.Data.DataRow)Container.DataItem)[1] %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Map2">
                        <ItemTemplate>
                            <%# ((System.Data.DataRow)Container.DataItem)[2] %>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div class="divProgress">
            Loading....
        </div>
    </div>
</asp:Content>

